/////////////////////
/* Dummy Functions */
/////////////////////

#include <msp430g2553.h>
#include "ChaosCube.h"


/*void initAudio(void){

  P2OUT &= ~(P_AUDIO_SEL_0 + P_AUDIO_SEL_1 + P_AUDIO_SEL_2 + P_AUDIO_ENABLE);
  P2DIR |= P_AUDIO_SEL_0 + P_AUDIO_SEL_1 + P_AUDIO_SEL_2 + P_AUDIO_ENABLE;

}

void sendAudio(int face){

  if(face == failure)
    P2OUT |= P_AUDIO_SEL_0;

  else if(face == success)
    P2OUT |= P_AUDIO_SEL_1;

  else if(face == face1)
    P2OUT |= P_AUDIO_SEL_2;
}

void initVisual(void){

  P1OUT &= ~(BIT5 + BIT6 + BIT7);
  P1DIR |= BIT5 + BIT6 + BIT7;

}

void sendVisual(int face){

  if(face == failure)
    P1OUT |= BIT5;

  else if(face == success)
    P1OUT |= BIT6;

  else if(face == face1)
    P1OUT |= BIT7;
}
*/
void initIMU(void){

	P2OUT &= ~P_IMU_INT;
	P2OUT |= P_IMU_INT;

}

int waitRoll(void){

  P2OUT |= P_IMU_INT;

  delay_ms(4000);

  return face2;

}

